constrain

open fun constrain(point: Point): Point

Constrains `point` against the bounds.

Parameters

point

The coordinate to be constrained.